package com.example.everying.framework.pay.model.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class NotifyDTO {
    @NotBlank
    private String id;

    @NotBlank
    private String createTime;

    @NotBlank
    private String eventType;

    @NotBlank
    private String resourceType;

    private Resource resource;

    @NotBlank
    private String summary;

    @NotBlank
    private String wechatpaySerial;

    @NotBlank
    private String wechatpaySignature;

    @NotBlank
    private String wechatpayTimestamp;

    @NotBlank
    private String wechatpayNonce;

    @NotBlank
    private String body;

    @Data
    public static class Resource {
        private String originalType;
        private String algorithm;
        private String ciphertext;
        private String associatedData;
        private String nonce;
    }
}